package com.blogSystem.article.dao;


import com.blogSystem.article.pojo.Comment;
import com.blogSystem.article.pojo.Thumbs;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {

    int insert(Comment comment);
    int deleteById(String id);
    int deleteByParentId(String parent_id);
    int deleteByArticleId(String article_id);
    int deleteByUserId(String user_id);
    int deleteByIds(List<String> list);
    List<Comment> selectAll();
    Comment selectById(String id);
    List<Comment> selectByUserId(String user_id);
    List<Comment> selectByArticleId(String article_id);
    List<Comment> selectByParentId(String parent_id);
    List<Comment> selectParentByArticleId(String article_id);
    int update(Comment comment);
}
